package com.kaifamiao.ioc.injection;

import java.time.LocalDate;

public class Sinaean {

    private Integer id ;
    private String name ;
    private char gender ;
    private LocalDate dateOfBirth ;
    private boolean married ;

    public Sinaean() {
        super();
        System.out.println( "public Sinaean()" );
    }

    public Sinaean(Integer id, String name) {
        super();
        System.out.println( "public Sinaean(Integer,String) : " + id );
        this.id = id;
        this.name = name;
    }

    public Sinaean(Integer id, String name, char gender) {
        super();
        System.out.println( "public Sinaean(Integer,String,char) : " + id );
        this.id = id;
        this.name = name;
        this.gender = gender;
    }

    public Sinaean(Integer id, String name, char gender, LocalDate birthdate) {
        super();
        System.out.println( "public Sinaean(Integer,String,char,LocalDate) : " + id );
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.dateOfBirth = birthdate;
    }

    @Override
    public String toString() {
        return "{" +
                "id : " + id +
                ", name : '" + name + '\'' +
                ", gender : " + gender +
                ", dateOfBirth : [ " + dateOfBirth +
                " ], married : " + married +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public LocalDate getDateOfBirth() {
        return dateOfBirth;
    }

    public void setDateOfBirth(LocalDate dateOfBirth) {
        System.out.println( "setDateOfBirth" );
        this.dateOfBirth = dateOfBirth;
    }

    public boolean isMarried() {
        return married;
    }

    public void setMarried(boolean married) {
        this.married = married;
    }

}
